import { request } from '/util/request.js'

// 轮播图相关的 API 方法
// 添加轮播图
export const addCarousel = (carousel) => {
  return service.post('/carousel/add', carousel);
};

// 更新轮播图
export const updateCarousel = (carousel) => {
  return service.post('/carousel/update', carousel);
};

// 删除轮播图
export const deleteCarousel = (carousel) => {
  return service.post('/carousel/delete', carousel);
};

// 根据对象选择单个轮播图
export const selectOneCarousel = (carousel) => {
  return service.post('/carousel/selectOne', carousel);
};

// 获取轮播图列表
export const getCarouselList = (carousel) => {
  return service.post('/carousel/list', carousel);
};